<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h3>示例1</h3>

<input type="button" class="btn btn-primary" value="点击" onclick="clickME();">

 <script type="text/javascript">
        function clickME() {
            console.log("点击了按钮")；
        }
    </script>
</body>
</html>